@using Rail.Net.Core.Model
@model PriceSerial

@{
    ViewBag.Title = "Delete";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>PriceSerial</legend>

    <div class="display-label">TarifNumber</div>
    <div class="display-field">@Model.TarifNumber</div>

    <div class="display-label">Class</div>
    <div class="display-field">@Model.Class</div>

    <div class="display-label">Serial</div>
    <div class="display-field">@Model.Serial</div>

    <div class="display-label">Price</div>
    <div class="display-field">@String.Format("{0:F}", Model.Price)</div>

    <div class="display-label">ValidFrom</div>
    <div class="display-field">@String.Format("{0:g}", Model.ValidFrom)</div>

    <div class="display-label">ValidTo</div>
    <div class="display-field">@String.Format("{0:g}", Model.ValidTo)</div>

    <div class="display-label">Ru</div>
    <div class="display-field">@(Model.Ru == null ? "None" : Model.Ru.Code)</div>
</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}


